-- GENERATED SPELL FOR [Scarlet Land Cannon] --


function spell0_28850(pUnit, Event) --@Cannonball,n/a--
pUnit:FullCastSpellOnTarget(52539,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28850', 1000, 1)
end

function Sorts_28850(pUnit, Event)
local choix_sorts_28850 = math.random(0, 0)
if choix_sorts_28850 == 0 then
pUnit:RegisterEvent('spell0_28850', 1, 1)
end
end

function mob28850_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28850', math.random(1500, 3000), 1)
end

function mob28850_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28850_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28850_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28850, 1, 'mob28850_Action')
RegisterUnitEvent(28850, 2, 'mob28850_Leave')
RegisterUnitEvent(28850, 3, 'mob28850_Kill')
RegisterUnitEvent(28850, 4, 'mob28850_Die')
